package 网站点击量;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class RedTest extends Reducer<Text, NullWritable,Text, IntWritable> {
    Text k = new Text();
    IntWritable v = new IntWritable();
    int [] rank  = new int[10];
    int count = 0;

    @Override
    protected void reduce(Text key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {
        for (NullWritable value:values){
            count++;
        }
    }
}
